﻿using System;
using System.Windows.Forms;

namespace HAOest.Forms.Buttons
{
    /// <summary>
    /// 最小化按钮
    /// </summary>
    public partial class MinimizeButton : SimpleButton
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public MinimizeButton()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 单击方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ButtonPictureBox_Click(object sender, EventArgs e)
        {
            this.FindForm().WindowState = FormWindowState.Minimized;
        }
    }
}
